def print_hi(name):
    print(f'Hi, {name}')


# 函数定义
def bmi(height, weight):
    return weight / (height * height)


# 求累加和的函数，num 表示结束的数字
def sum(num):
    result = 0
    for i in range(num + 1):
        result += i
    return result


if __name__ == '__main__':
    print_hi('PyCharm')
    print(bmi(1.7, 55))
    print(sum(5))
